package com.tencent.backstage.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "tb_course")
public class Course {

    @Id
    @Column(name = "id")
    private Long id;

    @Column(name = "title")
    private String title;

    @Column(name = "user_id")
    private Integer userId;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "joinTimes")
    private Integer joinTimes;

    @Column(name = "start_time")
    private Date startTime;

    @Column(name = "end_time")
    private Date endTime;

    @Column(name = "course_picture")
    private String coursePicture;

    @Column(name = "description")
    private String description;

    @Column(name = "goal")
    private String goal;

    @Column(name = "outline")
    private String outline;

    @Column(name = "price")
    private BigDecimal price;

    @Column(name = "course_type_id")
    private String courseTypeId;

    @Column(name = "course_type_name")
    private String courseTypeName;

    @Column(name = "username")
    private String username;

    @Column(name = "schedule")
    private String schedule;
}
